import request from '@/utils/request'

export function fetchStateData() {
  return request({
    url: '/home/getStateData',
    method: 'get'
  })
}

export function fetchRegionData() {
  return request({
    url: '/home/getRegionData',
    method: 'get'
  })
}
export function fetchHomeBarChartData(query) {
  // console.log(query)
  return request({
    url: '/home/HomeBarChartData',
    method: 'get',
    params: { query }
  })
}
export function fetchSiteOptions() {
  return request({
    url: '/home/getSiteOptions',
    method: 'get'
  })
}

